#include "app_chg_can.h"
#include "bsp_can.h"
#include <stdbool.h>
#include "main.h"

static CHG_MES_def chgMes;


static void TxChgMes01(void)
{
	chgMes.mes.life += 2;

    dv_CAN.fwrite_data(EM_CAN_1,0x0901BCF1, chgMes.data, 8);
}

static void TXChgMes(void)
{
	static uint16_t step = 0;
	step++;
	switch (step)
	{
		case 1:
			TxChgMes01();
			step = 0;
			break;
		default:
			break;
	}
}

void app_chg_can_rx_run(void)
{

}

void app_chg_can_tx_run(void)
{    
    TXChgMes();
}
